<?php
/**
 * View helper to generate a link for a &lt;ul&gt; using &lt;li&gt;&lt;a&gt;
 */
class Zend_View_Helper_AuthenticationToken extends Zend_View_Helper_Abstract
{
    /**
     * Generates a hidden &lt;input&gt; element used for storing authentication token to prevent CRSF
     *
     * @return string
     */
    public function AuthenticationToken()
    {
        $session = new Zend_Session_Namespace('session');
        return $session->authenticationToken;
    }
}